package com.yupi.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 流水号序列表
 */
@TableName(value = "number_sequence")
@Data
public class NumberSequence implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 业务类型：FLOW_NUMBER
     */
    @TableField("business_type")
    private String businessType;

    /**
     * 日期
     */
    @TableField("date")
    private LocalDate date;

    /**
     * 当日最大流水号
     */
    @TableField("current_sequence")
    private Integer currentSequence;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}